<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<style type="text/css">
		img{
			width: 250px;
			height: 300px;
		}
	</style>
	<body>
		<div id="app">
			<button @click="showin">切换</button>
			<img  v-show="isShow" src="img/2.jpg" >
		</div>
		<script>
			var app =  new Vue({
				el:"#app",
				data:{
					isShow:false
				},
				methods:{
					showin:function(){
					this.isShow = !this.isShow
				}
				}
				
			})
		</script>
	</body>
</html>
